<html>
<head>
	<meta charset='utf-8' />
	<title>辩证后台管理</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
	<style>
		@media screen and (max-width:450px){
			#Content,#Nav_bottom,#Back_Btn{width:98%;margin:0 auto}

			/*页面宽度900以下时 .abc的宽度为450*/
		}
		@media screen and (min-width:450px){
			#Content,#Nav_bottom,#Back_Btn{width:450px;margin:0 auto}
			/*页面宽度900以下时 .abc的宽度为450*/
		}
	</style>
</head>
<body style='padding:0;margin:0;background:#eaa'>



	<!-- 1 Content容器 -->
	<div id='Content' style=''>

		<h2 style='color:red;text-align:center'>辩证后台管理登陆</h2>


		<div style='text-indent:80px;'>
			登陆名：<input id='Login_User' style='width:230px'/>
		</div>

		<div style='text-indent:80px;margin:20px auto'>
			密　码：<input id='Login_Pwd' type='password' style='width:230px'/>
		</div>

		<div style='text-align:center'>
			<button  id='Login_Sub'>登陆</button>
		</div>

	</div><!-- 1 Content容器结束 -->



</body>
</html>
<script src='../public/jquery.js'></script>
<script src='../public/fun.js'></script>
<script>
$(function(){

	$('#Login_Sub').click(function(){
		var user = $('#Login_User').val().trim();
		var pwd = $('#Login_Pwd').val().trim();
		if(!user || !pwd){
			//A('缺少必填项！');return;
		}
		var data = {
			user:user,
			pwd:pwd,
			type:'login'
		}
		Ajax(data,function(res){
			var tmp = _checkJson(res,1);
			if(tmp.stat != 'ok'){
				A('用户名或密码不正确！');
			}else{
				sessionStorage.user = user;
				location.replace('main.html');
			}
		},url);
		//location.href='main.html'
	});


});
</script>












